package com.qyh.test;

import com.qyh.hhh.ToggleContextHolder;
import org.springframework.stereotype.Component;

import java.util.Objects;

@Component("someConditionMatcher")
public class SomeConditionMatcher {
    public String check() {
        Integer tenantId = ToggleContextHolder.getParam(Integer.class);
        if (Objects.equals(1, tenantId)) {
            return "a";
        } else {
            return "default";
        }
    }
}
